<?php

function logs($file_name,$param){
    if(is_array($param)){
        $logs = json_encode($param);
    }else{
        $logs = $param;
    }

    file_put_contents('../run/'.$file_name.'.txt',$logs,FILE_APPEND);
}